Skip to content

Commit cfbfcd8

Browse files
MateusFrFreitasMateus Franchini de Freitas
and
Mateus Franchini de Freitas
authored
fix: sending SERVER_ACK to messages.update (#1101)
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
1 parent 588de6c commit cfbfcd8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Socket/messages-recv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
637637
(
638638
// basically, we only want to know when a message from us has been delivered to/read by the other person
639639
// or another device of ours has read some messages
640-
status > proto.WebMessageInfo.Status.DELIVERY_ACK ||
640+
status >= proto.WebMessageInfo.Status.SERVER_ACK ||
641641
!isNodeFromMe
642642
)
643643
) {

src/Utils/generics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ export const generateMdTagPrefix = () => {
316316
}
317317

318318
const STATUS_MAP: { [_: string]: proto.WebMessageInfo.Status } = {
319+
'sender': proto.WebMessageInfo.Status.SERVER_ACK,
319320
'played': proto.WebMessageInfo.Status.PLAYED,
320321
'read': proto.WebMessageInfo.Status.READ,
321322
'read-self': proto.WebMessageInfo.Status.READ

0 commit comments

Comments
 (0)